package com.mdb.open.trade.domain.po.trade;

/*
* Copyright (C), 2017-2019 澳发科技(MDB)
* FileName: TfAttachFileService.java
* Author:   you.yichao
* Date:     2019-08-08
* History:
* <author>          <time>          <version>          <desc>
* you.yichao         2019-08-08          V1.00             代码生成器初始生成代码
* -----------------------------------------------------------
* 作者姓名           修改时间           版本号            描述
*/


import com.baomidou.mybatisplus.annotation.*;
import com.mdb.bc.api.data.DataObjectBase;
import com.mdb.open.common.enums.trade.status.AttachFileStatusEnum;
import com.mdb.open.common.enums.trade.type.AttachFileTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
* 类描述：
*  融资申请附件表实体类
*
* @author you.yichao
* @date 2019-08-08
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tf_attach_file")
public class AttachFile extends DataObjectBase {

    private static final long serialVersionUID = 1L;
    /**
    * 唯一性Id
    */
    @ApiModelProperty(value = "唯一性Id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
    * 附件编号
    */
    @ApiModelProperty(value = "附件编号")
    @TableField("attach_no")
    private String attachNo;

    /**
    * 客户编号
    */
    @ApiModelProperty(value = "客户编号")
    @TableField("customer_code")
    private String customerCode;

    /**
    * 文件名
    */
    @ApiModelProperty(value = "文件名")
    @TableField("file_name")
    private String fileName;

    /**
    * 商户编号
    */
    @ApiModelProperty(value = "商户编号")
    @TableField("merchant_no")
    private String merchantNo;

    /**
    * 申请单编号
    */
    @ApiModelProperty(value = "申请单编号")
    @TableField("apply_order_no")
    private String applyOrderNo;

    /**
    * 业务单号
    */
    @ApiModelProperty(value = "业务单号")
    @TableField("biz_order_no")
    private String bizOrderNo;

    /**
    * 附件类型
    */
    private AttachFileTypeEnum type;

    /**
    * 附件地址
    */
    @ApiModelProperty(value = "附件地址")
    @TableField("file_url")
    private String fileUrl;

    /**
    * 状态
    */
    private AttachFileStatusEnum status;

    /**
    * 创建时间
    */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
    * 更新时间
    */
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
    * 乐观锁版本号
    */
    @ApiModelProperty(value = "乐观锁版本号")
    @Version
    private Integer version;

    /**
    * 删除标识
    */
    @ApiModelProperty(value = "删除标识")
    @TableLogic
    private boolean deleted;

}
